With the Quit menu you can quit applications, force them to quit, and force them to quit and automatically relaunch them.
Click the red button in the menu panel or menu bar or, if you have enabled it, press the Quit menu keyboard shortcut.
Use the menu panel to display menus
Show Application Wizard in the menu bar
Use keyboard shortcuts to display menus
To quit an application, choose it from the Quit menu.
To quit an application and close (or keep) its windows, hold down the Command and Option keys and choose it from the Quit menu. Windows are closed if Resume is enabled for the chosen application or system-wide. Windows are kept if Resume is disabled for the chosen application or system-wide.
By default, Resume is disabled system-wide. To enable Resume system-wide, deselect the ”Close windows when quitting an app” checkbox in the General pane of System Preferences.
Disable or enable window restoration for specific applications
To force an application to quit, hold down the Option key and choose the application from the Quit menu.
To force an application to quit and automatically relaunch it, hold down the Control key and choose the application.
Warning: By forcing an application to quit, you may lose unsaved changes.
Quit menu items are described below. To add or remove items from the Quit menu, open the Application Wizard pane in System Preferences and click Menus. Click the Customize Menus button and click Quit.